CC=gcc
CFLAGS=-W -Wall
DISTDIR=/usr/local/bin

all:erawrimd

erawrimd:erawrim.c
	$(CC) $(CFLAGS) erawrim.c -o erawrimd

install:
	cp erawrimd $(DISTDIR)
	cp erawrim_do $(DISTDIR)

archive:
	tar -czvf erawrim.tar.gz erawrim.c erawrim_do Makefile

clean:
	rm -f *~ erawrimd erawrim.tar.gz